﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" MaintainScrollPositionOnPostback="true" CodeBehind="ParticularesView.aspx.cs" Inherits="Recursos.View.ParticularesView" %>
<% @ Register assembly = "AjaxControlToolkit" Namespace = "AjaxControlToolkit" TagPrefix = "cc1"%>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <style type="text/css">
        .style1
        {
            width: 963px;
        }
        .style2
        {
            height: 79px;
        }
        .style3
        {
            height: 31px;
        }
        .style4
        {
            height: 30px;
        }
        .style7
        {
            width: 80px;
        }
        .style8
        {
            height: 75px;
        }
        .style9
        {
            height: 32px;
        }
        .style10
        {
            height: 33px;
        }
        .style11
        {
            height: 99px;
        }
        .style12
        {
            height: 31px;
            width: 80px;
        }
        .style13
        {
            height: 30px;
            width: 80px;
        }
        .style14
        {
            height: 31px;
            width: 200px;
        }
        .style15
        {
            height: 30px;
            width: 200px;
        }
        .style16
        {
            height: 31px;
            width: 84px;
        }
        .style17
        {
            height: 30px;
            width: 84px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <table>
    <tr>
        <td class="style1"><h2>Crear reservación particular</h2></td>
    </tr>
    <tr>
        <td>
        <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="true" EnableScriptLocalization="true">
            </asp:ScriptManager>

        </td>
    </tr>
    <tr>
        <td class="style1">
            <table>
                <tr>
                    <td align="center" class="style16">Sede </td>
                    <td class="style3">

         <asp:DropDownList ID="DropDownListSedes" runat="server" AutoPostBack="True" 
                            onselectedindexchanged="DropDownListSedes_SelectedIndexChanged">
    </asp:DropDownList> </td>
                    <td class="style14"></td>
                    <td class="style12">Fecha Inicio</td>
                    <td>
                        <asp:TextBox ID="TextBoxFechaInicio" runat="server"></asp:TextBox>
                        
                    
                        <cc1:CalendarExtender ID="CalendarExtender1" PopupButtonID="Image2"
runat="server" TargetControlID="TextBoxFechaInicio" Format="dd/MM/yyyy"/>
                        <asp:Image ID="Image2" runat="server" ImageUrl="~/img/calendar.png" />
                        <asp:RegularExpressionValidator id="RegularExpressionValidator1" runat="server" ErrorMessage="RegularExpressionValidator"  
                        ControlToValidate="TextBoxFechaInicio" ForeColor="red"
                        ValidationExpression="^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((1[6-9]|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$">Formato de fecha dd/MM/aaaa</asp:RegularExpressionValidator>
                    
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style17">Año </td>
                    <td class="style4">
        <asp:TextBox ID="txtaño" runat="server"></asp:TextBox>
                    </td>
                    <td class="style15">
         <asp:CompareValidator ID="cv" runat="server" ControlToValidate="txtaño" Type="Integer" ForeColor="red"
   Operator="DataTypeCheck" ErrorMessage="El año debe ser numero entero. " />
                    </td>
                    <td class="style13">Fecha Final </td>
                    <td >
                        <asp:TextBox ID="TextBoxFechaFinal" runat="server"></asp:TextBox>
                         <cc1:CalendarExtender ID="CalendarExtender2" PopupButtonID="Image3"
                        runat="server" TargetControlID="TextBoxFechaFinal" Format="dd/MM/yyyy"/>
                        <asp:Image ID="Image3" runat="server" ImageUrl="~/img/calendar.png" />
                        <asp:RegularExpressionValidator id="RegularExpressionValidator2" runat="server" ErrorMessage="RegularExpressionValidator"  
                        ControlToValidate="TextBoxFechaFinal" ForeColor="red"
                        ValidationExpression="^(((0[1-9]|[12]\d|3[01])\/(0[13578]|1[02])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|[12]\d|30)\/(0[13456789]|1[012])\/((1[6-9]|[2-9]\d)\d{2}))|((0[1-9]|1\d|2[0-8])\/02\/((1[6-9]|[2-9]\d)\d{2}))|(29\/02\/((1[6-9]|[2-9]\d)(0[48]|[2468][048]|[13579][26])|((16|[2468][048]|[3579][26])00))))$">Formato de fecha dd/MM/aaaa</asp:RegularExpressionValidator></td>
                   
                </tr>
                <tr>
                    <td class="style16" align="center">Modalidad </td>
                    <td class="style3">
        <asp:DropDownList ID="DropDownListModalidad" runat="server">
        </asp:DropDownList>
                    </td>
                    <td class="style14"></td>
                    <td class="style12">Hora Inicio </td>
                    <td class="style3">
        <asp:DropDownList ID="DropDownListHoraInicio" runat="server" Height="19px" 
                Width="80px">
            <asp:ListItem>07:30</asp:ListItem>
            <asp:ListItem>08:30</asp:ListItem>
            <asp:ListItem>09:30</asp:ListItem>
            <asp:ListItem>10:30</asp:ListItem>
            <asp:ListItem>11:30</asp:ListItem>
            <asp:ListItem>14:00</asp:ListItem>
            <asp:ListItem>13:00</asp:ListItem>
            <asp:ListItem>16:00</asp:ListItem>
            <asp:ListItem>15:00</asp:ListItem>
            <asp:ListItem>18:00</asp:ListItem>
            <asp:ListItem>17:00</asp:ListItem>
            <asp:ListItem>21:00</asp:ListItem>
            <asp:ListItem>19:00</asp:ListItem>
        </asp:DropDownList>
                    </td>
                    <td class="style3">
                    </td>
                </tr>
                <tr>
                    <td align="center" class="style16">Período</td>
                    <td class="style3"><asp:DropDownList ID="DropDownListPeriodo" 
            runat="server">
                <asp:ListItem>1</asp:ListItem>
                <asp:ListItem>2</asp:ListItem>
                <asp:ListItem>3</asp:ListItem>
                <asp:ListItem>4</asp:ListItem>
                <asp:ListItem>5</asp:ListItem>
                <asp:ListItem>6</asp:ListItem>
                <asp:ListItem>7</asp:ListItem>
                <asp:ListItem>8</asp:ListItem>
                <asp:ListItem>9</asp:ListItem>
                <asp:ListItem>10</asp:ListItem>
                <asp:ListItem>11</asp:ListItem>
                <asp:ListItem>12</asp:ListItem>
        </asp:DropDownList>
                    </td>
                    <td class="style14"></td>
                    <td class="style12">Hora Final </td>
                    <td class="style3">
           <asp:DropDownList ID="DropDownListHoraFinal" runat="server" Height="18px" 
                Width="78px">
            <asp:ListItem>08:20</asp:ListItem>
            <asp:ListItem>09:20</asp:ListItem>
            <asp:ListItem>10:20</asp:ListItem>
            <asp:ListItem>11:20</asp:ListItem>
            <asp:ListItem>12:20</asp:ListItem>
            <asp:ListItem>13:50</asp:ListItem>
            <asp:ListItem>14:50</asp:ListItem>
            <asp:ListItem>15:50</asp:ListItem>
            <asp:ListItem>16:50</asp:ListItem>
            <asp:ListItem>17:50</asp:ListItem>
            <asp:ListItem>18:50</asp:ListItem>
            <asp:ListItem>19:50</asp:ListItem>
               <asp:ListItem>20:50</asp:ListItem>
               <asp:ListItem>21:50</asp:ListItem>
        </asp:DropDownList>
                    </td>
                    <td class="style3">
            <asp:Label ID="lblhoras" runat="server" ForeColor="Red" 
                Text="La hora final debe ser mayor a la inicial" 
    Visible="False"></asp:Label>
                    </td>
                </tr>
            </table>
        </td>
    </tr>
    <tr><td align="center" class="style2">
        <asp:Button ID="Button1" runat="server" Text="Mostrar Espacios" onclick="Button1_Click" 
           />
            <br />
        <br />
            <br />
        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Label ID="Label2" runat="server" Text="Reservaciones de cursos"></asp:Label>
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;
        <asp:Label ID="Label1" runat="server" Text="__________"></asp:Label>
            &nbsp;<asp:Label ID="Label3" runat="server" Text="Reservaciones particulares"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Label ID="Label4" runat="server" Text="__________"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;<asp:Label ID="Label5" runat="server" Text="Espacios libres"></asp:Label>
            &nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        <asp:Label ID="Label6" runat="server" Text="__________"></asp:Label>&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;
        
            </td>
    </tr>
    <tr><td>
        <cc1:TabContainer ID="TabContainer1" runat="server" ActiveTabIndex="0" 
                 Height="500px" onactivetabchanged="TabContainer1_ActiveTabChanged">
        </cc1:TabContainer></td></tr>
    <tr>
        <td align="center" class="style8">
            <table>
            <tr><td class="style7">
            <asp:CheckBox ID="cblunes" runat="server" Text="Lunes" />
                    </td><td  class="style7">
            <asp:CheckBox ID="cbmartes" runat="server" Text="Martes" />
                    </td><td  class="style7">
            <asp:CheckBox ID="cbmiercoles" runat="server" Text="Miércoles" />
                    </td><td  class="style7">
            <asp:CheckBox ID="cbjueves" runat="server" Text="Jueves" />
                    </td><td  class="style7">
            <asp:CheckBox ID="cbviernes" runat="server" Text="Viernes" />
                    </td><td  class="style7">
            <asp:CheckBox ID="cbsabado" runat="server" Text="Sábado" />
                    </td></tr>
            </table>
        </td>
    </tr>
    <tr>
        <td align="center">
            <table>
                <tr><td class="style9">Institución</td><td class="style9">
        <asp:TextBox ID="txtinstitucion" runat="server"></asp:TextBox>
                    </td></tr>
                <tr><td class="style9">Responsable</td><td class="style9">
        <asp:TextBox ID="txtresponsable" runat="server"></asp:TextBox>
                    </td></tr>
                <tr><td class="style10">Descripción</td><td class="style10">
        <asp:TextBox ID="txtdescripcion" runat="server" Height="24px"></asp:TextBox>
                    </td></tr>
            </table>
        </td>
    </tr>
    <tr><td align="center" class="style11">
        <asp:Button ID="btnreservar" runat="server" Text="Reservar" onclick="Reservar" 
                Enabled="False" />
        </td>
    </tr>
    </table>
</asp:Content>
